package com.leyou.service.impl;

import com.leyou.entity.Specification;
import com.leyou.mapper.SpecificationMapper;
import com.leyou.service.SpecificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SpecificationServiceImpl implements SpecificationService {

    @Autowired
    private SpecificationMapper specificationMapper;

    @Override
    public Specification getSpecByCid(Long categoryId) throws Exception {
        return specificationMapper.selectByPrimaryKey(categoryId);
    }
}
